import request from '@/utils/request'

// 查询通知公告用户阅读表列表
export function listNotificationUser (query) {
  return request({
    url: '/platform/notificationUser/list',
    method: 'get',
    params: query
  })
}

// 查询通知公告用户阅读表详细
export function getNotificationUser (id) {
  return request({
    url: '/platform/notificationUser/' + id,
    method: 'get'
  })
}

// 新增通知公告用户阅读表
export function addNotificationUser (data) {
  return request({
    url: '/platform/notificationUser',
    method: 'post',
    data: data
  })
}

// 修改通知公告用户阅读表
export function updateNotificationUser (data) {
  return request({
    url: '/platform/notificationUser',
    method: 'put',
    data: data
  })
}

// 删除通知公告用户阅读表
export function delNotificationUser (id) {
  return request({
    url: '/platform/notificationUser/' + id,
    method: 'delete'
  })
}


// 导出通知公告用户阅读表
export function exportNotificationUser (query) {
  return request({
    url: '/platform/notificationUser/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/platform/notificationUser/getInitData/' + dictTypes,
    method: 'get'
  })
}
